Remove C99'ism.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 12 Jun 2003 23:52:03 +0000 (23:52 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 12 Jun 2003 23:52:03 +0000 (23:52 +0000)
gpsbabel/mkshort.c

index f18b69eff48f255d79f0e7110e857b2b47d3e568..c2fae3f4d90d340f0d77296c87f15af7a3bdff11 100644 (file)
@@ -88,10 +88,9 @@ static
 int
 add_to_hashlist(mkshort_handle *h, char *name)
 {
-       int hash;
-
-       hash = hash_string(name);
+       int hash = hash_string(name);
        uniq_shortname *s = xcalloc(1, sizeof (uniq_shortname));
+
        s->orig_shortname = xstrdup(name);
        ENQUEUE_TAIL(&h->namelist[hash], &s->list);
 }